package com.woniuxy.project.campus.util;

import io.jsonwebtoken.Claims;

import javax.annotation.Resource;
public class TokenTool {
    //解析token
    public static Integer getUserIdByToken(String token) {
        Claims claims = UtilJWP.parseToken(token);
        return Integer.parseInt(claims.get("id").toString());
    }



}
